PCA Index Dashboard Examples

PCA Index Dashboard Examples#

This script was last run at 2024-04-11 10:20:43.713266+00:00 (UTC)
In US/Central Time, this is 2024-04-11 05:20:43.713266-05:00
import matplotlib.pyplot as plt
import pandas as pd
import numpy as np

# Generating a random time series data
dates = pd.date_range(start="2021-01-01", end="2021-12-31", freq='D')
data = np.random.randn(len(dates)).cumsum()

# Creating the plot
plt.figure(figsize=(10, 6))
plt.plot(dates, data, label='Random Time Series', color='blue')
plt.title('Random Time Series Plot')
plt.xlabel('Date')
plt.ylabel('Value')
plt.legend()
plt.grid(True)
plt.xticks(rotation=45)
plt.tight_layout()

# Display the plot
plt.show()
print('We are just generating a random time serie here.')
../../_images/3407e5a3f6e8330cd18bad2dde2cdc4a8bf18a50b995d947514b46147202e3da.png
We are just generating a random time serie here.
../../_images/94e8b830d32c027d1e789b0a6273201ac8faf47128a1b4702276e837efde7f92.png
../../_images/7f86724472d5e39d8ffbfe78fb42c370ddd51f3816a33d2b97b730db5e458c44.png